import request from '@/utils/request'

// 查询分类选项
export function optionsCmsArticleCategory(query) {
  return request({
    url: '/cms/cmsArticleCategory/options',
    method: 'get',
    params: query
  })
}

// 查询文章分类列表
export function listCmsArticleCategory(query) {
  return request({
    url: '/cms/cmsArticleCategory/list',
    method: 'get',
    params: query
  })
}

// 查询文章分类详细
export function getCmsArticleCategory(id) {
  return request({
    url: '/cms/cmsArticleCategory/' + id,
    method: 'get'
  })
}

// 新增文章分类
export function addCmsArticleCategory(data) {
  return request({
    url: '/cms/cmsArticleCategory',
    method: 'post',
    data: data
  })
}

// 修改文章分类
export function updateCmsArticleCategory(data) {
  return request({
    url: '/cms/cmsArticleCategory',
    method: 'put',
    data: data
  })
}

// 删除文章分类
export function delCmsArticleCategory(id) {
  return request({
    url: '/cms/cmsArticleCategory/' + id,
    method: 'delete'
  })
}
